
    <form class="form-horizontal bv-form"  role="form" id="updateForm" enctype ="multipart/form-data">
        <input type="hidden" name="fid" value="{$data['life_id']}">
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">发布人</label>
                <div class="col-sm-6">
                    <input type="text" name="title" class="form-control"  value="{$data['user_username']}">
                </div>
            </div><div class="form-group">
                <label class="col-sm-3 control-label">标题</label>
                <div class="col-sm-6">
                    <input type="text" name="title" class="form-control"  value="{$data['life_title']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">类型</label>
                <div class="col-sm-6">
                    {if $data['life_new_type']==1}<input type="text" name="title" class="form-control"  value="新农村">{/if}
                    {if $data['life_new_type']==2}<input type="text" name="title" class="form-control"  value="大学生">{/if}
                    {if $data['life_new_type']==3}<input type="text" name="title" class="form-control"  value="二手货">{/if}
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">发布城市</label>
                <div class="col-sm-6">
                    <input type="text" name="title" class="form-control"  value="{$data.sheng}{$data.shi}{$data.qu}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">详细地址</label>
                <div class="col-sm-6">
                    <input type="text" name="title" class="form-control"  value="{$data.life_address}">
                </div>
            </div>
            <!-- TODO 价格未定，联系电话未定-->
            <!--<div class="form-group">-->
                <!--<label class="col-sm-3 control-label">价格</label>-->
                <!--<div class="col-sm-6">-->
                    <!--<input type="text" name="title" class="form-control"  value="{$data.life_price}">-->
                <!--</div>-->
            <!--</div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">图片</label>
                <div class="col-sm-6">
                    {if !$data['life_image']}暂无图片{/if}
                </div>
            </div>
            {if $data['life_image']}
            <div style="width: 100%;">
                {volist name="img" id='im'}
                <img src="{$im}" alt="" style="width: 30%;height: auto;margin-left: 2%;margin-bottom: 10px;"/>
                {/volist}
            </div>
            {/if}

            <div class="form-group">
                <label class="col-sm-3 control-label">内容</label>
                <div class="col-sm-6">
                    <textarea name="con" rows="10" class="form-control">{$data['life_content']}</textarea>
                </div>
            </div>
            {if $data['life_url']}
            <div class="form-group">
                <label class="col-sm-3 control-label">视频</label>
                <div class="col-sm-6">
                    <video src="{$data['life_url']}" controls="controls" width="100%"></video>
                </div>
            </div>
            {/if}

        </fieldset>
    </form>
    <script>
        $('input,textarea').attr('disabled','disabled');
    </script>